From 0afa7733ef403ce05fb78603ecd46b110830a77f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 10 Jan 2008 22:53:43 +0000 Subject: [PATCH] x86_emulate: Fix near CALL/JMP . Broken by c/s 16491. Thanks to AMD for narrowing this one down. Signed-off-by: Keir Fraser --- xen/arch/x86/x86_emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index a31b5370eb..c1116017db 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -1732,7 +1732,6 @@ x86_emulate( break; case 2: /* call (near) */ case 4: /* jmp (near) */ - dst.type = OP_NONE; if ( (dst.bytes != 8) && mode_64bit() ) { dst.bytes = op_bytes = 8; @@ -1746,6 +1745,7 @@ x86_emulate( _regs.eip = dst.val; if ( (modrm_reg & 7) == 2 ) goto push; /* call */ + dst.type = OP_NONE; break; case 3: /* call (far, absolute indirect) */ case 5: /* jmp (far, absolute indirect) */ { -- 2.30.2